package com.chapter.sample.answer.aopreview;

public class PayClientTest {

    private static void payNormalV1(){
        PayService payService = new PayServiceImpl();
        payService.pay();
    }

    private static void payProxyV2(){
        PayService payService = new PayProxy(new PayServiceImpl());
        payService.pay();
    }
    public static void main(String[] args) {

        payNormalV1();
        //payProxyV2();//静态代理
    }
}
